<script setup>
import {useRouter} from "vue-router";
import {toRefs} from "vue";

const props = defineProps()
const {title} = toRefs(props)
const userRouter = useRouter()
const back = () => {
    userRouter.back()
}

</script>

<template>

    <nut-navbar @on-click-back="back" :title="title">
        <template #left @click="back">
            <div>返回</div>
        </template>
        <template #right>
            <ShareN width="16px"></ShareN>
        </template>
    </nut-navbar>
</template>

<style scoped lang="less">

</style>